package com.aiyige.model.appVersion;

import android.text.TextUtils;

/**
 * Created by xiachao on 16/11/21.
 */

public class VersionInfo {
    public String isForceUpdate;
    public String versionName;
    public String fileUrl;
    public String description;

    public String oldVersion;
    public String versionSize;
    // 是否强制更新
    public boolean isForceUpdate()
    {
        return !TextUtils.isEmpty(isForceUpdate) && isForceUpdate.equals("1");
    }

    @Override
    public String toString() {
        return "VersionInfo{" +
                "isForceUpdate='" + isForceUpdate + '\'' +
                ", versionName='" + versionName + '\'' +
                ", fileUrl='" + fileUrl + '\'' +
                ", description='" + description + '\'' +
                ", oldVersion='" + oldVersion + '\'' +
                ", versionSize='" + versionSize + '\'' +
                '}';
    }
}
